package org.zfes.snowier.cloud.zbss.widget.act.dto;
import java.io.Serializable;

import org.zfes.snowier.cloud.zbss.widget.act.model.ActSubjectQuesAnswer;

public class ActSubjectQuesAnswerCreateDto implements Serializable{

	private static final long serialVersionUID = 1L;
	
	public ActSubjectQuesAnswerCreateDto() {}
	

//	@javax.validation.constraints.NotNull(message="所属课堂不能为空")
//	  private java.lang.Long subjectId;
//	@javax.validation.constraints.NotNull(message="问题类型不能为空")
//	  private java.lang.Long quesId;
	@javax.validation.constraints.NotNull(message="所属课堂问题不能为空")
	private Long subjectQuesId;
	
	@org.hibernate.validator.constraints.Length(min=0,max=20,message="单选题多选题判断答案长度不能大于20")
	  private java.lang.String answerDxMxPd;
	@org.hibernate.validator.constraints.Length(min=0,max=600,message="填空题答案长度不能大于600")
	  private java.lang.String answerTk;
	@org.hibernate.validator.constraints.Length(min=0,max=65535,message="简答题论述分析答案长度不能大于65,535")
	  private java.lang.String answerJdLsFx;

	
	public ActSubjectQuesAnswer toAnswer() {
		ActSubjectQuesAnswer answer=new ActSubjectQuesAnswer();
		answer.setSubjectQuesId(this.getSubjectQuesId());
//		answer.setSubjectId(this.getSubjectId());
//		answer.setQuesId(this.getQuesId());
		answer.setAnswerDxMxPd(this.getAnswerDxMxPd());
		answer.setAnswerJdLsFx(this.getAnswerJdLsFx());
		answer.setAnswerTk(this.getAnswerTk());
		return answer;
	}
	//<-------------------------------------------->

	
	
	public ActSubjectQuesAnswerCreateDto setAnswerDxMxPd(java.lang.String answerDxMxPd){
		this.answerDxMxPd=answerDxMxPd==null?null:answerDxMxPd.trim();
	 return this;
	}
	public java.lang.String getAnswerDxMxPd(){
		return this.answerDxMxPd;
	}
	public ActSubjectQuesAnswerCreateDto setAnswerTk(java.lang.String answerTk){
		this.answerTk=answerTk==null?null:answerTk.trim();
	 return this;
	}
	public java.lang.String getAnswerTk(){
		return this.answerTk;
	}

	public ActSubjectQuesAnswerCreateDto setAnswerJdLsFx(java.lang.String answerJdLsFx){
		this.answerJdLsFx=answerJdLsFx==null?null:answerJdLsFx.trim();
	 return this;
	}
	public java.lang.String getAnswerJdLsFx(){
		return this.answerJdLsFx;
	}



	public Long getSubjectQuesId() {
		return subjectQuesId;
	}



	public ActSubjectQuesAnswerCreateDto setSubjectQuesId(Long subjectQuesId) {
		this.subjectQuesId = subjectQuesId;
		 return this;
	}

}
